package com.mall.common.service.impl;

import javax.annotation.Resource;

import org.springframework.cache.annotation.CacheEvict;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.mall.common.dao.ComponentBundleDao;
import com.mall.common.domain.component.ComponentBundleDomain;
import com.mall.common.service.ComponentBundleService;

/**
 * Service实现类 - 插件桩
 */
@Service
@Transactional
public class ComponentBundleServiceImpl extends BaseServiceImpl<ComponentBundleDomain, Long> implements
	ComponentBundleService {
	
	@Resource
	public void setBaseDao(ComponentBundleDao pluginBundleDao) {
		super.setBaseDao(pluginBundleDao);
	}

	@Override
	@CacheEvict(value="component",allEntries=true)
	@Transactional(propagation=Propagation.REQUIRED)
	public void remove(Long id) {
		super.remove(id);
	}

}
